package com.nchu.romantic.surprise.setting;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author fujianjian
 * @project react-learning
 * @date 2019/8/5 23:06
 */
@Slf4j
public class Main {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:config/customer_service.xml");
        Service service = (Service) applicationContext.getBean(Service.class.getName());
        log.info("load bean from xml, bean:{}", service);

    }
}
